﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using final_darskade.Models;
using System.ComponentModel.DataAnnotations;

namespace final_darskade.Models
{
    public class EditPrivilege
    {

        public int klass_id { get; set; }
        public string klass_name { get; set; }
        public int proff_id { get; set; }
        public string proff_name { get; set; }
        public string proff_lastname { get; set; }
        public int term { get; set; }
        public EditPrivilege() { }
        public EditPrivilege(int kid, string kname, string fname, string lname, int trm, int pid)
        {
            klass_id = kid;
            klass_name = kname;
            fname = proff_name;
            lname = proff_lastname;
            term = trm;
            proff_id = pid;
        }
    }

    public class EditProffesorPrivilege
    {
        darskadeEntities de = new darskadeEntities();
        public bool edit_info { get; set; }
        public bool download_file { get; set; }
        public bool upload_file { get; set; }
        public int klass_id { get; set; }
        public int prof_id { get; set; }
        public string klass_name { get; set; }
        public string name { get; set; }
        public string last_name { get; set; }

        public bool membership_confirm { get; set; }
        public bool membership_to_klass { get; set; }
        public bool membership_remove { get; set; }
        public bool TA_privilege { get; set; }

        public bool isChecked_membership_confirm { get; set; }
        public bool isChecked_membership_remove { get; set; }
        public bool isChecked_membership_to_klass { get; set; }
        public bool isChecked_TA_privilege { get; set; }

        public EditProffesorPrivilege()
        {
            isChecked_membership_confirm = false;
            isChecked_membership_to_klass = false;
            isChecked_membership_remove = false;
            isChecked_TA_privilege = false;
        }
        public bool klass_member_search { get; set; }
        public bool my_klass { get; set; }
        public bool search_course { get; set; }
        public bool search_klass { get; set; }





    }

    public class klass2
    {
        // public klass_members klas { get; set; }
        public string privilege_name { get; set; }
        //public int proff_id { get; set; }
        //public int klass_id {get; set;}
        public int privilege_id { get; set; }
        public klass_members km { get; set; }
        //public klass2() {
        //    privilege_name = null;
        //}
        public klass2(int k, string pr_name)
        {
            privilege_id = k;
            privilege_name = pr_name;

        }
        public klass2(klass_members in_km, string p_name)
        {

            km = in_km;
            privilege_name = p_name;
        }

    }


    public class klassPrivilege
    {

        public string studentName { get; set; }
        public string studentLastName { get; set; }
        public bool uploadFilePr { get; set; }
        public string klassName { get; set; }
        public int trm { get; set; }

        public klassPrivilege() { }
    }
}